home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 009 / unprot.arc / DOUBLDOS.TXT < prev    next >
Encoding:
Text File  |  1986-03-27  |  9.0 KB  |  207 lines

  1. *********************** DOUBLEDOS Ver. 1.00 *************
  2.  
  3.                  DOUBLEDOS  -  Unprotect
  4.                                         Based on The Lone Victor's
  5.                                         routine.
  6.  
  7.      The following instructions show you how to bypass the SoftGuard
  8. copy protection scheme used on DOUBLEDOS version 1.00.  This is the same
  9. scheme used for FrameWork 1.10 and for Wordstar 2000 1.00.  Wordstar
  10. 2000 version 1.10 does not use a copy protection scheme, while versions
  11. 1.00 of dBase III and FrameWork used ProLock.  To unprotect Prolock disks
  12. read the file PROLOCK.UNP.
  13.  
  14.      First, using your valid, original DOUBLEDOS diskette, install it on
  15. a fixed disk.  Softguard hides three files in your root directory:
  16. CML0200.HCL, VDF0200.VDW, and DOUBLEDO.EXE.  It also copies DOUBLEDO.COM into
  17. your chosen DOUBLEDOS directory.  DOUBLEDO.EXE is the real DOUBLEDOS program,
  18. encrypted.  When you run DOUBLEDOS, the program DOUBLEDO.COM loads CML0200.HCL
  19. high in memory and runs it.  CML decrypts itself and reads VDF0200.VDW.
  20. The VDF file contains some code and data from the fixed disk FAT at the
  21. time of installation.  By comparing the information in the VDF file with
  22. the current FAT, CML can tell if the CML, VDF, and DOUBLEDO.EXE files are
  23. in the same place on the disk where they were installed.  If they have
  24. moved, say from a backup & restore, then DOUBLEDOS will not run.
  25.  
  26.      Second, un-hide the three files in the root directory.  You can do
  27. this with the programs ALTER.COM or FM.COM found on any BBS.
  28.  
  29.      Make copies of the three files, and of DOUBLEDO.COM, into some other
  30. directory.
  31.  
  32.      Hide the three root files again using ALTER or FM.
  33.  
  34.      Following the DOUBLEDOS  instructions, UNINSTALL DOUBLEDOS.  You can now
  35. put away your original DOUBLEDOS diskette.  We are done with it.
  36.  
  37.      Next we will make some patches to CML0200.HCL to allow us to trace
  38. through the code in DEBUG.  These patches will keep it from killing our
  39. interrupt vectors.
  40.  
  41. debug cml0200.hcl
  42. e 3F9 <CR>  2A.4A <CR>          ; change the 2A to 4A
  43. e 49D <CR>  F6.16 <CR>          ;  if any of these numbers don't show up
  44. e 506 <CR>  E9.09 <CR>          ;  it's not working.
  45. e A79 <CR>  00.20 <CR>          ;
  46. e AE9 <CR>  00.20 <CR>          ;
  47. e 73C  97 FA FA F4 F1 7E <CR>   ; this is an encrypted call to 0:300
  48. w                               ; write out the new CML file
  49. q                               ; quit debug
  50.  
  51.  
  52.      Now copy your four saved files back into the root directory and
  53. hide the CML0200.HCL, VDF0200.VDW, and DOUBLEDOS.EXE files using ALTER or FM.
  54.  
  55.      We can now run DOUBLEDO.COM using DEBUG, trace just up to the point
  56. where it has decrypted DOUBLEDO.EXE, then write that file out.
  57.  
  58. debug dOUBLEDO.COM
  59. r <CR>                          ; write down the value of DS for use below.
  60. a 0:300 <CR>                    ; we must assemble some code here
  61.         pop     ax
  62.         cs:
  63.         mov     [320],ax        ; save return address
  64.         pop     ax
  65.         cs:
  66.         mov     [322],ax
  67.         push    es              ; set up stack the way we need it
  68.         mov     ax,20
  69.         mov     es,ax
  70.         mov     ax,0
  71.         cs:
  72.         jmp     far ptr [320]   ; jump to our return address
  73.  <CR>
  74. g 406                           ; now we can trace CML
  75. t
  76. g 177                           ; this stuff just traces past some
  77. g 1E9                           ;   encryption routines.
  78. t
  79. g 54E                           ; wait while reading VDF & FAT
  80. g=559 569
  81. g=571 857                       ; DOUBLEDO.EXE has been decrypted
  82. rBX <CR>                        ; length DOUBLEDO.EXE = 04800 bytes
  83. :0                              ; set BX to 0
  84. rCX <CR>
  85. :4800                           ; set CX to 4800.
  86. nDOUBLEDO                       ; name of file to write to
  87. w XXXX:100                      ; where XXXX is the value of DS that
  88.                                 ;   you wrote down at the begining.
  89. q                               ; quit debug
  90.  
  91.      Last, unhide and delete the three root files CML0200.HCL, VDF0200.VDW,
  92. and DOUBLEDO.EXE.  Delete DOUBLEDO.COM and rename DOUBLEDO to DOUBLEDO.EXE.  This is the
  93. real DOUBLEDOS program without any SoftGuard code or encryption.  It requires
  94. only the DOUBLGD2.PGM and DDCONFIG.SYS files to run.
  95.  
  96.  
  97. *********************** DOUBLEDOS Ver. 2.00 *************
  98.  
  99. Unprotect DoubleDOS, Version 2.00
  100. ---------------------------------
  101.  
  102. The following instructions show you how to bypass the DoubleDOS
  103. copy protection scheme used on Version 2.00.  My thanks to Lone
  104. Victor, whoever he/she is, for a push in the right direction, by
  105. way of DB3V110.UNP, and most of all, Thanx and a tip of the hat
  106. to the guy I learn something technical from every day, The Coffee
  107. Man, who did the work!!
  108.  
  109. First, using your ORIGINAL DoubleDOS diskette, install it on
  110. a FIXED DISK!  DoubleDOS hides three files in your root directory:
  111. CML0200.HCL, VDF0200.VDW, and DOUBLEDO.EXE.  It also copies DOUBLEDO.COM
  112. to the current logged hard disk directory.  DOUBLEDO.EXE is the real
  113. DoubleDOS program, encrypted.  When you run DoubleDOS, the program
  114. DOUBLEDO.COM loads CML0200.HCL high in memory and runs it.  CML0200.HCL
  115. decrypts itself and reads VDF0200.VDW.  The VDF0200.VDW file contains
  116. some code and data from the fixed disk FAT at the time of installation.
  117. By comparing the information in the VDF0200.VDW file with the current
  118. FAT, CML0200.HCL can tell if the three hidden files are still in the
  119. same place on the disk where they were installed.  If they have
  120. moved, say from a backup & restore, then DoubleDOS will not run.
  121.  
  122. Second, un-hide the three files in the root directory.  You can do
  123. this with the programs ALTER.COM or FM.COM found on any BBS, or many
  124. other commercially available programs.
  125.  
  126. Make copies of the three files, and of DOUBLEDO.COM, into some other
  127. directory.  Hide the three root files again!
  128.  
  129. Following the DoubleDOS instructions, UNINSTALL DoubleDOS.  You can now
  130. put away your original DoubleDOS diskette.  We are done with it.
  131.  
  132. Next we will make some patches to CML0200.HCL to allow us to trace
  133. through the code in DEBUG.  These patches will keep it from killing our
  134. interrupt vectors.
  135.  
  136. debug cml0200.hcl
  137. e 3F9 <CR>  2A.4A <CR>          ; change the 2A to 4A
  138. e 49D <CR>  F6.16 <CR>          ; if any of these numbers don't show up
  139. e 506 <CR>  E9.09 <CR>          ; it's not working.
  140. e A79 <CR>  00.20 <CR>          ;
  141. e AE9 <CR>  00.20 <CR>          ;
  142. e 73C  97 FA FA F4 F1 7E <CR>   ; this is an encrypted call to 0:300
  143. w                               ; write out the new CML file
  144. q                               ; quit debug
  145.  
  146.  
  147. Now copy your four saved files back into the root directory and
  148. hide the CML0200.HCL, VDF0200.VDW, and DOUBLEDO.EXE files.
  149.  
  150. We can now run DOUBLEDO.COM using DEBUG, trace just up to the point
  151. where it has decrypted DOUBLEDO.EXE, then write that file out.
  152.  
  153. debug doubledo.com
  154. r <CR>                          ; write down the value of DS for use below.
  155. a 0:300 <CR>                    ; we must assemble some code here
  156.         pop     ax
  157.         cs:
  158.         mov     [320],ax        ; save return address
  159.         pop     ax
  160.         cs:
  161.         mov     [322],ax
  162.         push    es              ; set up stack the way we need it
  163.         mov     ax,20
  164.         mov     es,ax
  165.         mov     ax,0
  166.         cs:
  167.         jmp     far ptr [320]   ; jump to our return address
  168.  <CR>
  169. g 406                           ; now we can trace CML
  170. t
  171. g 177                           ; this stuff just traces past some
  172. g 1E9                           ; encryption routines.
  173. t
  174. g 54E                           ; wait while reading VDF & FAT
  175. g=559 569
  176. g=571 857                       ; DOUBLEDO.EXE has been decrypted
  177. rBX <CR>                        ; length DOUBLEDO.EXE = 1AC00 bytes
  178. :1                              ; set BX to 1
  179. rCX <CR>
  180. :AC00                           ; set CX to AC00.
  181. nDOUBLEDO                       ; name of file to write to
  182. w XXXX:100                      ; where XXXX is the value of DS that
  183.                                 ; you wrote down at the begining.
  184. q                               ; quit debug
  185.  
  186. Last, unhide and delete the three root files CML0200.HCL, VDF0200.VDW,
  187. and DOUBLEDO.EXE.  Delete DOUBLEDO.COM and rename DOUBLEDO (the one we
  188. just wrote, with Debug) to DOUBLEDO.EXE.  This is the real DoubleDOS
  189. program without any encryption or protection.  It requires only the
  190. remaining files you already have probably worked with (DDCONFIG.SYS,
  191. etc.) to run.
  192.  
  193. The only words above that are different from Lone Victor's DBase III
  194. unprotection are the substitution of DOUBLEDO.COM and DOUBLEDO.EXE
  195. in place of the references to DBASE!  Because of this, the BX and CX
  196. values above will create a DOUBLEDO.EXE file that is over 100K in
  197. length.  This .EXE program runs just fine, but Relia's Spacemaker
  198. will pack that file down to a .COM file of 2,979 bytes!  So far, no
  199. problems - it works great!
  200.  
  201. Good luck from the Coffee Man and Big-A!
  202. 5-5-85
  203.  
  204. *********************** DOUBLEDOS Ver. 2.1R *************
  205.  
  206. See SOFTGARD.TXT
  207.